<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/12/21
 * Time: 9:43
 */
namespace Home\Controller;

use Think\Controller;

class MyBehaviorController extends Controller{

    /**
     * 首页
     */
    public function index(){

        /*监听 一个 测试行为*/
//        $params = array('name'=>'av','value'=>'你好!');
//        $first_test = \Think\Hook::listen('mytest',$params);
        C('TEST_PARAMS',1);
//        dump(B('Home\\Behavior\\Test')); /*手动调用*/

        $this->display('Behavior/behavior');
    }
}